package org.springblade.modules.admin.vo.rescue;

import cn.hutool.core.convert.Convert;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.springblade.modules.admin.dto.rescue.PlanAddUserSearchDTO;

import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.util.List;

/**
 * @author zcc
 * @version 1.0
 * @date 2023/2/27 14:44
 */
@Data
@ApiModel("用户信息")
public class UserInfoVo  {

	private Long userId;

	private String userName;

	private String phone;

	private String groupName;

	private String roleName;

	private String avatar;

	private String openId;

	private String userIds;

	private String brandNames;

	private String skillNames;

	private Integer planCounts = 0;

	private List<Integer> typeStatus;


	private Double distance = 0.0;

	private Double userDistance = 0.0;

	private String latitude;

	private String longitude;

	private String userLatitude;

	private String userLongitude;

	public void setDistance(Double distance) {
		Double aDouble = Convert.toDouble(Convert.toBigDecimal(distance).setScale(1, RoundingMode.HALF_UP));
		this.distance = aDouble;
	}

	public void setUserDistance(Double userDistance) {
		Double aDouble = Convert.toDouble(Convert.toBigDecimal(userDistance).setScale(1, RoundingMode.HALF_UP));
		this.userDistance = aDouble;
	}


}
